<?if(!$sw) {?>
    <html>
    <head>
    <title>Админцентр::<?=$result['do_name'];?></title>
    <script src='<?=$_GLOBALS['cnf']['tpl_dir'];?>/admin_tpl/sc.js' laguage="javascript"></script>
    </head>
    <body>
    <link rel="stylesheet" href="<?=$_GLOBALS['cnf']['tpl_dir'];?>/admin_tpl/admin_style.css" type="text/css">
    <table width=90% align=center style="border: 1px solid #321C70" cellpadding=0 cellspacing=0 >
    <tr>
    <td width=25% align=center style="background-color:#6A3EB7;color:#F0EDFF;font-weight:bold;">Меню</td>
    <td style="border-left: 1px solid #3A1F7F;background-color:#6A3EB7;color:#F0EDFF;font-weight:bold;"  align=center><?=$result['do_name'];?></td>
    <tr>
    <td style="border-top: 1px solid #3A1F7F"  valign=top>
    <div style='padding-left:13px;pagging-top:2px;padding-bottom:2px'>
     <li><a href="<?=preg_replace("#\/([^\/]+)$#i","",$_SERVER['PHP_SELF']);?>"> В гостевую </a></li>
     <li><a href="admin.php"> Статистика </a></li>
      <li><a href="admin.php?do=editmsg"> Редактор Сообщений </a></li>
      <br>
      <li><a href="admin.php?do=out"> Выход </a></li>
    </div>
    </td><td style="border-left: 1px solid #3A1F7F;border-top: 1px solid #3A1F7F;padding:5px 5px 5px" valign=top>
<?}else {?>
     <head>
     <title><?=$result['do_name'];?></title>
     <script src='<?=$_GLOBALS['cnf']['tpl_dir'];?>/admin_tpl/sc.js' laguage="javascript"></script>
     </head>
     <link rel="stylesheet" href="<?=$_GLOBALS['cnf']['tpl_dir'];?>/admin_tpl/admin_style.css" type="text/css">
<?}?>
    <?if($result['error']){?><div style='border:1px solid red;padding:4px;'><B><u>Информация:</u></b><br><?=$result['error'];?></div><br><?}?>
<?if(!$sw) {?>
    <?=$result['content'];?>
    </td>
    </table>
    </body>
    </html>
<?}else{?>
<?=$result['content'];?>
<?}?>
